package com.mdd.admin.validate.student;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;

@Data
@ApiModel("学生创建参数")
public class StudentCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "姓名")
    private String name;

    @NotNull(message = "age参数缺失")
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @NotNull(message = "sex参数缺失")
    @ApiModelProperty(value = "性别: [0=男, 1=女]")
    private Integer sex;

}
